package org.nnxy.foodboot.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 食谱特征实体类
 */
@Data
@TableName("recipe_feature")
public class RecipeFeature {
    
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    
    private Integer recipeId;
    
    private String cuisineType;
    
    private String tasteProfile;
    
    private String nutritionProfile;
    
    private BigDecimal calorie;
    
    private BigDecimal protein;
    
    private BigDecimal fat;
    
    private BigDecimal carbs;
    
    private BigDecimal fiber;
    
    private String cookingMethod;
    
    private Integer cookingTime;
    
    private String difficultyLevel;
    
    private String ingredientFeature;
    
    private String healthTags;
    
    private String mealType;
    
    private String seasonalRating;
    
    @TableLogic
    @TableField(value = "del_flag")
    private String delFlag;
    
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    private LocalDateTime createdTime;
    
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    
    // 非数据库字段
    @TableField(exist = false)
    private Recipe recipe;
} 